package com.nova.bluetooth.netWork;

import java.util.Map;

import okhttp3.RequestBody;
import okhttp3.ResponseBody;
import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.GET;
import retrofit2.http.Headers;
import retrofit2.http.POST;
import retrofit2.http.QueryMap;

public interface TranslateRequest {
    @GET("machineTranslation/textTranslate?")
    Call<ResponseBody> textTranslate(@QueryMap Map<String,String> params);

    /**
     * 百度翻译
     * @param params
     * @return
     */
    @GET("baiduTranslation/translate")
    Call<ResponseBody> baiduTranslation(@QueryMap Map<String,String> params);

    @POST("baiduTranslation/translate")
    @Headers({"Content-Type: application/json", "Accept: application/json"})
    Call<ResponseBody> baiduTranslation(@Body RequestBody route);
}
